package testsuite_homepage1;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class AfterLoginPage {

	
	//package testsuite_homepage;

	//import org.openqa.selenium.WebDriver;

	//public class FalseLoginPage {
		 

		 
		 
		        private final WebDriver driver;
		        public AfterLoginPage(WebDriver driver)
		        //public FalseLoginPage(WebDriver driver)
		        {
		                 this.driver = driver;
		               
		                if (!driver.getPageSource().contains("Username and password do not match or you do not have an account")) {
		                    throw new IllegalStateException("False login homepage not appears.");
		                
		                }

		

	//package testsuite_homepage;

	//import org.openqa.selenium.By;
	//import org.openqa.selenium.WebDriver;

	//public class SuccessLoginPage {

		//private final WebDriver driver;

		//public SuccessLoginPage(WebDriver driver) {
			//this.driver = driver;

			if (!driver.getPageSource().contains("Change Password")) {
				throw new IllegalStateException("Homepage not logged in.");
			}
		}
		                
		        }		                

	




